from dataclasses import dataclass


@dataclass(frozen=True)
class CartLineDTO:
    product_id: int
    quantity: int


@dataclass(frozen=True)
class CartDTO:
    id: int
    products: list[CartLineDTO]
    user_id: int
